package com.ssl.order.pay.strategy;

import com.ssl.order.pojo.OrderSubmitRequest;

public class PayContext {
    private IPayStrategy payStrategy;

    public PayContext(IPayStrategy payStrategy) {
        this.payStrategy = payStrategy;
    }
    public String execute(OrderSubmitRequest orderSubmitRequest){
        return this.payStrategy.pay(orderSubmitRequest);
    }
}
